com.epiphan.vga2usb
Class DeviceType

Object
  extended bycom.epiphan.vga2usb.Enum
      extended bycom.epiphan.vga2usb.Enum.Int
          extended bycom.epiphan.vga2usb.DeviceType
All Implemented Interfaces:
Comparable

public final class DeviceType
extends com.epiphan.vga2usb.Enum.Int

Typesafe enumeration of the device types.


Field Summary
static DeviceType DVI2PCI
          DVI2PCIe frame grabber.
static DeviceType DVI2USB
          DVI2USB dual-mode (VGA & DVI) frame grabber.
static DeviceType DVI2USBDuo
          DVI2USB Duo frame grabber.
static DeviceType DVI2USBSolo
          DVI2USB Solo frame grabber.
static DeviceType KVM2USB
          Old KVM2USB device (discontinued).
static DeviceType KVM2USBLR
          KVM2USB device, revision 2.
static DeviceType KVM2USBLR2
          KVM2USB device, revision 3.
static DeviceType KVM2USBPro
          KVM2USB Pro device.
static DeviceType UNKNOWN
          Placeholder for any unknown device type.
static DeviceType VGA2PCI
          VGA2PCIe frame grabber.
static DeviceType VGA2USB
          VGA2USB frame grabber.
static DeviceType VGA2USBHR
          VGA2USB HR frame grabber.
static DeviceType VGA2USBHR2
          VGA2USB HR frame grabber, revision 2.
static DeviceType VGA2USBLR
          VGA2USB LR frame grabber.
static DeviceType VGA2USBLR2
          VGA2USB LR frame grabber, revision 2.
static DeviceType VGA2USBPro
          VGA2USB Pro frame grabber.
static DeviceType VGA2USBPro2
          VGA2USB Pro frame grabber, revision 2.
 
Method Summary
 int compareTo(int key)
          Compares id of this object with the specified key for order.
 int compareTo(Object obj)
          Compares this object with the specified object for order.
 String getDescription()
          Returns the description of this object.
static DeviceType getDeviceType(int value)
          Converts native device type value into a DeviceType object.
static DeviceType getDeviceType(int value, String name)
          Converts native device type value into a DeviceType object.
 int getValue()
          Gets the integer value associated with this object.
 int hashCode()
          Returns the hashcode for this object.
protected static int search(java.util.List list, int key)
          Searches the list for the specified enum object using the binary search algorithm.
 String toString()
          Returns a string representation of this object.
 
Methods inherited from class Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DVI2PCI

public static final DeviceType DVI2PCI
DVI2PCIe frame grabber.

See Also:
http://www.epiphan.com/products/dvi-frame-grabbers/dvi2pcie

DVI2USB

public static final DeviceType DVI2USB
DVI2USB dual-mode (VGA & DVI) frame grabber.

See Also:
http://www.epiphan.com/products/frame-grabbers/dvi2usb

DVI2USBDuo

public static final DeviceType DVI2USBDuo
DVI2USB Duo frame grabber.

See Also:
http://www.epiphan.com/products/frame-grabbers/dvi2usb-duo

DVI2USBSolo

public static final DeviceType DVI2USBSolo
DVI2USB Solo frame grabber.

See Also:
http://www.epiphan.com/products/frame-grabbers/dvi2usb-solo

KVM2USB

public static final DeviceType KVM2USB
Old KVM2USB device (discontinued).


KVM2USBLR

public static final DeviceType KVM2USBLR
KVM2USB device, revision 2.

See Also:
http://www.epiphan.com/products/frame-grabbers/kvm2usb

KVM2USBLR2

public static final DeviceType KVM2USBLR2
KVM2USB device, revision 3.

See Also:
http://www.epiphan.com/products/frame-grabbers/kvm2usb

KVM2USBPro

public static final DeviceType KVM2USBPro
KVM2USB Pro device.


UNKNOWN

public static final DeviceType UNKNOWN
Placeholder for any unknown device type.


VGA2PCI

public static final DeviceType VGA2PCI
VGA2PCIe frame grabber.

See Also:
http://www.epiphan.com/products/frame-grabbers/vga2pcie

VGA2USB

public static final DeviceType VGA2USB
VGA2USB frame grabber.

See Also:
http://www.epiphan.com/products/frame-grabbers/vga2usb

VGA2USBHR

public static final DeviceType VGA2USBHR
VGA2USB HR frame grabber.

See Also:
http://www.epiphan.com/products/frame-grabbers/vga2usb-hr

VGA2USBHR2

public static final DeviceType VGA2USBHR2
VGA2USB HR frame grabber, revision 2.

See Also:
http://www.epiphan.com/products/frame-grabbers/vga2usb-hr

VGA2USBLR

public static final DeviceType VGA2USBLR
VGA2USB LR frame grabber.

See Also:
http://www.epiphan.com/products/frame-grabbers/vga2usb-lr

VGA2USBLR2

public static final DeviceType VGA2USBLR2
VGA2USB LR frame grabber, revision 2.

See Also:
http://www.epiphan.com/products/frame-grabbers/vga2usb-lr

VGA2USBPro

public static final DeviceType VGA2USBPro
VGA2USB Pro frame grabber.

See Also:
http://www.epiphan.com/products/frame-grabbers/vga2usb-pro

VGA2USBPro2

public static final DeviceType VGA2USBPro2
VGA2USB Pro frame grabber, revision 2.

See Also:
http://www.epiphan.com/products/frame-grabbers/vga2usb-pro
Method Detail

getDeviceType

public static DeviceType getDeviceType(int value)
Converts native device type value into a DeviceType object.

Parameters:
value - integer value that identifies the device type
Returns:
The DeviceType object that identifies this device type, or UNKNOWN if the device type is unknown.

getDeviceType

public static DeviceType getDeviceType(int value,
                                       String name)
Converts native device type value into a DeviceType object. Creates a new device type if doesn't find the existing one.

Parameters:
value - integer value that identifies the device type
name - device type string
Returns:
The DeviceType object that identifies this device

compareTo

public int compareTo(int key)
Compares id of this object with the specified key for order. Returns a negative integer, zero, or a positive integer as id of this object is less than, equal to, or greater than the specified key.

Parameters:
key - the key to be compared.
Returns:
a negative integer, zero, or a positive integer as id of this object is less than, equal to, or greater than the specified key.
Throws:
ClassCastException - if the specified object's type prevents it from being compared to this Object.
See Also:
Comparable

compareTo

public int compareTo(Object obj)
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Specified by:
compareTo in interface Comparable
Parameters:
obj - the Object to be compared.
Returns:
a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
Throws:
ClassCastException - if the specified object's type prevents it from being compared to this Object.
See Also:
Comparable

getValue

public final int getValue()
Gets the integer value associated with this object.

Returns:
The integer value that identifies this object

hashCode

public final int hashCode()
Returns the hashcode for this object.

Returns:
The hashcode for this object.

search

protected static int search(java.util.List list,
                            int key)
Searches the list for the specified enum object using the binary search algorithm. The list must be sorted.

Parameters:
list - the list to search
key - the key to search for
Returns:
index of the enum object, if it is contained in the list; otherwise, (-(insertion point) - 1).

getDescription

public final String getDescription()
Returns the description of this object.

Returns:
The description of this object.

toString

public final String toString()
Returns a string representation of this object. This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations. The returned string may be empty but may not be null.

Returns:
A string representation of this object.


Copyright © 2008-2012 Epiphan Systems Inc. All rights reserved.